import 'package:daoyi_ui_admin_getx/app/modules/home/home_navigator_widget.dart';
import 'package:daoyi_ui_admin_getx/app/modules/home/home_recommend_widget.dart';
import 'package:daoyi_ui_admin_getx/app/routes/app_pages.dart';
import 'package:daoyi_ui_admin_getx/app/widgets/common_swiper_widget.dart';
import 'package:daoyi_ui_admin_getx/app/widgets/search_bar/search_bar_widget.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';

import 'info/info_widget.dart';

class TabHomeWidget extends StatelessWidget {
  const TabHomeWidget({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: SearchBarWidget(
          showLocation: true,
          showMap: true,
          onSearch: () {
            Get.toNamed(Routes.SEARCH_PAGE);
          },
        ), //Text(LocaleKeys.pages_home_title.tr),
      ),
      body: SafeArea(
        child: ListView(
          children: const <Widget>[
            CommonSwiperWidget(),
            HomeNavigatorWidget(),
            HomeRecommendWidget(),
            InfoWidget(
              showTitle: true,
            ),
            // Text("data")
          ],
        ),
      ),
    );
  }
}
